package com.zhixiang.xaec.service.safebase.saferesponsibility.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.safebase.saferesponsibility.WorkMainDao;
import com.zhixiang.xaec.entity.safebase.saferesponsibility.WorkMain;
import com.zhixiang.xaec.service.safebase.saferesponsibility.WorkMainService;


@Service
public class WorkMainServiceImpl extends BaseServiceImpl<WorkMain, Long> implements WorkMainService
{

    @Override
    @Resource(type = WorkMainDao.class)
    public void setBaseDao(BaseDao<WorkMain, Long> dao)
    {

        setDao(dao);
    }

    @Override
    public String delete(String[] ids)
    {
        for (String id : ids)
        {
            getDao().remove(Long.valueOf(id));
        }
        return null;
    }

}
